{% extends './include/base.html' %}

{% block pages %}
    <!--form 方式提交-->
    <div class="login">
        <form action="{% url 'login' %}" method="post" novalidate>
            {% csrf_token %}
            <p>用户名{{ obj.user }}</p>
            <span>{{ obj.errors.user.0 }} </span>
            <p>密码{{  obj.passWord }}</p>
            <span>{{ obj.errors.passWord.0 }}</span>
            <p>年龄{{  obj.age }}</p>
            <span>{{ obj.errors.age.0 }}</span>
            <p><input type="submit" value="提交"></p>
        </form>
    </div>
{% endblock %}